package io.github.topcatv.mall.model.sys.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.github.topcatv.mall.common.support.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuyi
 * @since 2019-10-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="Permission对象", description="")
public class Permission extends BaseEntity {

    public final static int TYPE_MENU = 1;
    public final static int TYPE_ACTION = 0;

    private static final long serialVersionUID = 1L;

    private String name;

    private Integer level;

    private Integer type;

    private String title;

    private String path;

    private String component;

    private String icon;

    private String description;

    private BigDecimal sortOrder;

    private Boolean enabled;

    private String url;

    private Integer parentId;

    @TableLogic
    private Boolean deleted;
}
